import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石仲夏
 * Date: 2025-07-06
 * Time: 9:47
 */
public class Text {
    public static void main(String[] args) {
        int[][] array =new int[2][];
        array[0] =new int[3];
        array[1] =new int[5];
        System.out.println(Arrays.deepToString(array));
    }
    public static void main5(String[] args) {
        int[][] array =new int[][]{{1,2,3},{4,5,6}};
        System.out.println(Arrays.deepToString(array));
    }
    public static void main4(String[] args) {
        int[][] array=new int[][]{{1,2,3},{4,5,6}};
        for (int[] arr:array) {
            for (int x:arr) {
                System.out.print(" "+x);
            }
            System.out.println();
        }
    }
    public static void main3(String[] args) {
        int[][] array=new int[][]{{1,2,3},{4,5,6}};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(" "+array[i][j]);
            }
            System.out.println();
        }
    }
    public static void main2(String[] args) {
        int[][] array =new int[][]{{1,2,3},{4,5,6}};
        System.out.println(Arrays.toString(array[0]));
        System.out.println(Arrays.toString(array[1]));
    }
    public static void main1(String[] args) {
        int[] array=new int[]{1,2,3,4,5};
        int[] copy= Arrays.copyOf(array,array.length*2);
        System.out.println(Arrays.toString(copy));
    }
}
